package org.vergil.core.designpattern.strategy;

/**
 * Created by vergil on 17-3-25.
 */
public class VIPDiscount extends AbstractDiscount {

    @Override
    public double calculate(double price) {
        System.out.println("VIP票：");
        System.out.println("增加积分！");
        return price * 0.5;
    }
}
